import { defineStore } from 'pinia';

export const GoodsStore = defineStore('goods', {
    state: () => {
        return {
            goodsList: []
        }
    },
    getters: {},
    actions: {
        addGoods(payload) {
            this.goodsList = payload;
        }
    },
    // 数据持久化
    // persist: {
    //     enabled: true
    // }
})